$OpenBSD: patch-vmime_utility_smartPtrInt_hpp,v 1.4 2017/05/04 18:01:19 espie Exp $
Index: vmime/utility/smartPtrInt.hpp
--- vmime/utility/smartPtrInt.hpp.orig
+++ vmime/utility/smartPtrInt.hpp
@@ -27,6 +27,7 @@
 
 #include "vmime/config.hpp"
 #include "vmime/utility/smartPtr.hpp"
+#include <pthread.h>
 
 
 namespace vmime {
@@ -53,7 +54,11 @@ class refCounter (private)
 #if defined(_WIN32)
 	long m_value;
 #elif defined(__GNUC__) && (defined(__GLIBCPP__) || defined(__GLIBCXX__))
+#  if defined(__sparc64__)
+	mutable volatile long m_value;
+#  else
 	mutable volatile int m_value;
+#  endif
 #elif defined (VMIME_HAVE_PTHREAD)
 	volatile long m_value;
 	pthread_mutex_t m_mutex;
